package io.yuanqi.hgtcshop.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import io.yuanqi.hgtcshop.entity.dos.Order;
import io.yuanqi.hgtcshop.entity.dos.OrderItem;
import io.yuanqi.hgtcshop.entity.enums.PayStatusEnum;
import io.yuanqi.hgtcshop.entity.vo.OrderVO;
import io.yuanqi.hgtcshop.entity.vo.UserNameAndFaceVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 子订单业务层
 *
 * @author Chopper
 * @since 2020/11/17 7:36 下午
 */
public interface OrderService extends IService<Order> {


    String createOrderTrade(String openId, String[] skuIds);

    OrderVO getOrderBySn(String orderSn);

    List<OrderVO> getOrderByMemberId(String memberId, Integer orderType);

    UserNameAndFaceVO getUserNameAndFaceByOrderSn(String orderSn);

    Order getOrder(String orderSn);

    Boolean updatePayOrderSnByOrderSn(String orderSn,String payOrderSn);

    Boolean updatePayStatusByOrderSn(String orderSn, String tradeNo, Date successDate, PayStatusEnum payStatusEnum);


    Order getOrderInfo(String orderSn);

    Boolean updateAddress(String orderSn, String openId);
}